package com.acsior.hibernate.vo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;

/**
 * TradeService entity. @author MyEclipse Persistence Tools <b><i>powered by
 * Belev</i></b>
 */
@Entity
@Table(name = "trade_services")
@GeneratorKey(tableName = "service_requests")
public class TradeServiceVO extends ServiceRequestVO {

	private static final long serialVersionUID = 77360476163906695L;

	@Column(name = "accept_transfer_date", nullable = true, length = 23)
	private Date acceptTransferDate;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "marketing_service_id")
	private MarketingServiceVO marketingService;

	@Column(name = "nullify_transfer_date", nullable = true, length = 23)
	private Date nullifyTransferDate;

	/** default constructor */
	public TradeServiceVO() {
		super();
	}

	/**
	 * @return acceptTransferDate
	 */

	public Date getAcceptTransferDate() {
		return this.acceptTransferDate;
	}

	/** @return the marketingService */
	public MarketingServiceVO getMarketingService() {
		return this.marketingService;
	}

	/**
	 * @return nullifyTransferDate
	 */

	public Date getNullifyTransferDate() {
		return this.nullifyTransferDate;
	}

	/**
	 * @param acceptTransferDate
	 */
	public void setAcceptTransferDate(Date acceptTransferDate) {
		this.acceptTransferDate = acceptTransferDate;
	}

	/**
	 * @param marketingService
	 *            the marketingService to set
	 */
	public void setMarketingService(MarketingServiceVO marketingService) {
		this.marketingService = marketingService;
	}

	/**
	 * @param nullifyTransferDate
	 */
	public void setNullifyTransferDate(Date nullifyTransferDate) {
		this.nullifyTransferDate = nullifyTransferDate;
	}

}